\ My card doesn't even support this ... so I use EXT-FBO.f instead
Optional EXT-FBO.f

Requires OpenGL\GL-extensions

Only Forth Definitions

2 void GLFunction: glGenRenderbuffersEXT   \ address count
2 void GLFunction: glDeleteRenderbuffersEXT   \ address count

2 void GLFunction: glBindRenderbufferEXT   \ renderbuffer target
4 void GLFunction: glRenderbufferStorageEXT   \ h w component target
2 void GLFunction: glBindFramebufferEXT   \ renderbuffer target
2 void GLFunction: glGenFramebuffersEXT   \ pointer count
2 void GLFunction: glDeleteFramebuffersEXT   \ address count

5 void GLFunction: glFramebufferTexture1DEXT   \ level texture textarget attachment target
5 void GLFunction: glFramebufferTexture2DEXT   \ level texture textarget attachment target
6 void GLFunction: glFramebufferTexture3DEXT   \ zoffset level texture textarget attachment target
4 void GLFunction: glFramebufferRenderbufferEXT   \ renderbuffer renderbuffertarget attachment target
1 void GLFunction: glGenerateMipmapEXT   \ target
1 GLFunction: glCheckFramebufferStatusEXT   \ target
10 void GLFunction: glBlitFramebufferEXT ( srcx0 srcy0 srcx1 srcy1 dstx0 dsty0 dstx1 dsty1 mask filter -- )
\ GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
\ GLAPI void APIENTRY glFramebufferTextureLayer (GLenum, GLenum, GLuint, GLint, GLint);

#define        GL_FRAMEBUFFER_EXT                     $8D40

{     Accepted by the <target> parameter of BindRenderbufferEXT,
    RenderbufferStorageEXT, and GetRenderbufferParameterivEXT, and
    returned by GetFramebufferAttachmentParameterivEXT: }


#define        GL_RENDERBUFFER_EXT                    $8D41

{     Accepted by the <internalformat> parameter of
    RenderbufferStorageEXT: }

#define        GL_STENCIL_INDEX1_EXT                  $8D46
#define        GL_STENCIL_INDEX4_EXT                  $8D47
#define        GL_STENCIL_INDEX8_EXT                  $8D48
#define        GL_STENCIL_INDEX16_EXT                 $8D49

{    Accepted by the <pname> parameter of GetRenderbufferParameterivEXT: }

#define        GL_RENDERBUFFER_WIDTH_EXT              $8D42
#define        GL_RENDERBUFFER_HEIGHT_EXT             $8D43
#define        GL_RENDERBUFFER_INTERNAL_FORMAT_EXT    $8D44
#define        GL_RENDERBUFFER_RED_SIZE_EXT           $8D50
#define        GL_RENDERBUFFER_GREEN_SIZE_EXT         $8D51
#define        GL_RENDERBUFFER_BLUE_SIZE_EXT          $8D52
#define        GL_RENDERBUFFER_ALPHA_SIZE_EXT         $8D53
#define        GL_RENDERBUFFER_DEPTH_SIZE_EXT         $8D54
#define        GL_RENDERBUFFER_STENCIL_SIZE_EXT       $8D55

{     Accepted by the <pname> parameter of
    GetFramebufferAttachmentParameterivEXT: }

#define        GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT            $8CD0
#define        GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT            $8CD1
#define        GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT          $8CD2
#define        GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT  $8CD3
#define        GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT     $8CD4

\ {    Accepted by the <attachment> parameter of
\     FramebufferTexture{1D|2D|3D}EXT, FramebufferRenderbufferEXT, and
\     GetFramebufferAttachmentParameterivEXT }

#define        GL_COLOR_ATTACHMENT0_EXT                $8CE0
#define        GL_COLOR_ATTACHMENT1_EXT                $8CE1
#define        GL_COLOR_ATTACHMENT2_EXT                $8CE2
#define        GL_COLOR_ATTACHMENT3_EXT                $8CE3
#define        GL_COLOR_ATTACHMENT4_EXT                $8CE4
#define        GL_COLOR_ATTACHMENT5_EXT                $8CE5
#define        GL_COLOR_ATTACHMENT6_EXT                $8CE6
#define        GL_COLOR_ATTACHMENT7_EXT                $8CE7
#define        GL_COLOR_ATTACHMENT8_EXT                $8CE8
#define        GL_COLOR_ATTACHMENT9_EXT                $8CE9
#define        GL_COLOR_ATTACHMENT10_EXT               $8CEA
#define        GL_COLOR_ATTACHMENT11_EXT               $8CEB
#define        GL_COLOR_ATTACHMENT12_EXT               $8CEC
#define        GL_COLOR_ATTACHMENT13_EXT               $8CED
#define        GL_COLOR_ATTACHMENT14_EXT               $8CEE
#define        GL_COLOR_ATTACHMENT15_EXT               $8CEF
#define        GL_DEPTH_ATTACHMENT_EXT                 $8D00
#define        GL_STENCIL_ATTACHMENT_EXT               $8D20


{    Accepted by GetIntegerv(): }

#define        GL_FRAMEBUFFER_BINDING_EXT             $8CA6
#define        GL_RENDERBUFFER_BINDING_EXT            $8CA7
#define        GL_MAX_COLOR_ATTACHMENTS_EXT           $8CDF
#define        GL_MAX_RENDERBUFFER_SIZE_EXT           $84E8


{    Returned by CheckFramebufferStatusEXT(): }

#define GL_FRAMEBUFFER_COMPLETE_EXT                          $8CD5
#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT             $8CD6
#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT     $8CD7
#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT             $8CD9
#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT                $8CDA
#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT            $8CDB
#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT            $8CDC
#define GL_FRAMEBUFFER_UNSUPPORTED_EXT                       $8CDD

